﻿using System.Net;

namespace HelpDeskTool.Services;

public class Dns : IDns
{
    public Task<IPAddress[]> GetIpAddressAsync(string hostname, CancellationToken cancellationToken = default)
    {
        return System.Net.Dns.GetHostAddressesAsync(hostname, System.Net.Sockets.AddressFamily.InterNetwork, cancellationToken);
    }
}
